package com.jwsoft.manager.common.enums;

/**
 * 地址树处理状态类型
 * @Author zhiyuan
 * @Date 2023/4/20 11:22
 */
public enum EduAddressTreeHandleStatusTypeEnum {

    UNTREATED("0","未处理"),
    HANDLESUCCESS("1","处理成功"),
    HANDLEERROR("2","处理失败"),
    NOHANDLE("9","不处理");


    private String type;
    private String name;

    EduAddressTreeHandleStatusTypeEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return this.type;
    }

    public String getName() {
        return this.name;
    }

    public static EduAddressTreeHandleStatusTypeEnum getByType(String type) {

        for (EduAddressTreeHandleStatusTypeEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
